import './config/request_method.dart';
import 'dio_manager.dart';

Stream get(String url, {Map<String, dynamic> params}) =>
    Stream.fromFuture(DioManager().request(RequestMethod.GET, url, map: params))
        .asBroadcastStream();

///
Stream post(String url, Map<String, dynamic> params) => Stream.fromFuture(
        DioManager().request(RequestMethod.POST, url, map: params))
    .asBroadcastStream();
